package com.zhangyu.shadow.repair.delegate.maintain;

import com.alibaba.fastjson.JSON;
import com.zhangyu.shadow.repair.delegate.bean.ModelPerson;

/**
 * @author zhangyu
 * @date 2019/3/19
 */
public class PostPhoneData {
    private final String appId;
    private final String authKey;
    private final String workCode;
    private final String sourceType;
    private final ModelPerson modelPerson;

    public PostPhoneData(String appId, String authKey,
                         String workCode, String sourceType, ModelPerson modelPerson) {
        this.appId = appId;
        this.authKey = authKey;
        this.workCode = workCode;
        this.sourceType = sourceType;
        this.modelPerson = modelPerson;
    }
    public static String getJsonData(String appId,
                                     String authKey,
                                     String workCode,
                                     String sourceType,
                                     ModelPerson modelPerson) {
        return JSON.toJSONString(new PostPhoneData(appId, authKey, workCode, sourceType, modelPerson));
    }
    public String getAppId() {
        return appId;
    }

    public String getAuthKey() {
        return authKey;
    }

    public String getWorkCode() {
        return workCode;
    }

    public String getSourceType() {
        return sourceType;
    }

    public ModelPerson getModelPerson() {
        return modelPerson;
    }
}
